package com.ihr360.cnb.module.insurance.service.feign.fallback;

import com.ihr360.cnb.module.insurance.service.feign.InsuranceMonthlyLedgerService;
import com.ihr360.commons.exception.Ihr360Exception;
import com.ihr360.commons.vo.PageData;
import com.ihr360.excel.entity.ExportParams;
import com.ihr360.insurance.entity.request.StaffLedgerRequest;
import com.ihr360.insurance.entity.response.LedgerResponse;
import com.ihr360.insurance.entity.vo.StaffBenefitVo;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-05-23 19:52:25.
 */
@Component
public class InsuranceMonthlyLedgerServiceFallback implements InsuranceMonthlyLedgerService {

    @Override
    public PageData<StaffBenefitVo> getAddableList(String companyId, String userId, StaffLedgerRequest staffLedgerRequest) {
        throw new Ihr360Exception("", "内部服务调用失败：调用福利云服务失败");
    }

    @Override
    public LedgerResponse addLedgerStaff(String companyId, String userId,
                                         List<StaffBenefitVo> staffBenefits, Integer ledgerYear, Integer ledgerMonth) {
        throw new Ihr360Exception("", "内部服务调用失败：调用福利云服务失败");
    }

    @Override
    public ExportParams getExportData(String companyId, String userId,
                                      String requestString, Map<Long, String> departmentFullNames) {
        throw new Ihr360Exception("", "内部服务调用失败：调用福利云服务失败");
    }
}
